package com.jia.lidao.network.http.request.impl;

import com.jia.lidao.Constans;
import com.jia.lidao.enity.OrderLoanRespDTO;
import com.jia.lidao.network.http.request.AbstractRequest;
import com.lidroid.xutils.http.client.HttpRequest;

import org.apache.http.Header;

import java.lang.reflect.Type;
import java.util.List;

/**
 * Created by jia on 17/12/23.
 */

public class LoanDetailRequest extends AbstractRequest {

    private int id;


    public LoanDetailRequest(int id){
        this.id=id;
    }

    @Override
    public String getUrl() {
        return Constans.BASEURL+"/loans/merchants/detail";
    }

    @Override
    public void initRequestParams() {
        addParam("order_id",String.valueOf(id));
    }

    @Override
    public List<Header> getHeaders() {
        return null;
    }

    @Override
    public Type getResultType() {
        return OrderLoanRespDTO.class;
    }


    @Override
    public HttpRequest.HttpMethod getRequestMethod() {
        return HttpRequest.HttpMethod.GET;
    }
}
